﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkTrendsList.aspx.cs"
    Inherits="SXT.Party.PartyAdmin.Module.WorkTrends.WorkTrendsList" %>

<%@ Register Assembly="SXT.Web.Controls.V2" Namespace="SXT.Web.Controls" TagPrefix="SXT" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">
        $(function () {
            $("#btnAdd").click(function () {
                var url = "WorkTrendsEdit.aspx?BranchID=" + $("#hfBranchID").val() + "&PageType=" + $("#hfPageType").val();
                $(this).attr("DialogPageUrl", url);
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <!--对话框区域开始-->
            <SXT:Dialog ID="editDialog" Width="750px" Height="550px" Title="工作动态详细信息" runat="server" />
            <SXT:Dialog ID="auditDialog" Width="220px" Height="110px" Title="审核操作" runat="server" />
            <asp:HiddenField ID="hfPageType" runat="server" />
            <asp:HiddenField ID="hfBranchID" runat="server" />
            <!--对话框区域结束-->
            <!--标题区域开始-->
            <div class="list-buttonbar">
                <div class="list-title">
                    <asp:Label ID="lbPagePath" runat="server" Text=""></asp:Label>
                </div>
                <div class="list-button">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <SXT:ButtonEx ID="btnQuery" runat="server" CssName="query" ControlSign="Query" OnClick="btnQuery_Click" />
                            </td>
                            <td>
                                <SXT:ButtonEx ID="btnAdd" runat="server" CssName="add" ControlSign="Add" DialogID="editDialog"
                                    DialogPageUrl="WorkTrendsEdit.aspx" />
                            </td>
                            <td>
                                <SXT:ButtonEx ID="btnDelete" runat="server" CssName="delete" ControlSign="Delete"
                                    OnClick="btnDelete_Click" ConfirmMessage="你确定要删除所选数据吗？" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <!--标题区域结束-->
            <!--查询条件区域开始-->
            <div class="list-queryarea">
                <table border="0" cellpadding="2" cellspacing="2">
                    <tr>
                        <td nowrap="nowrap" align="right">标题：
                        </td>
                        <td nowrap="nowrap" align="left">
                            <SXT:TextBoxEx ID="txtTitle" runat="server" Width="200px"></SXT:TextBoxEx>
                        </td>
                        <td nowrap="nowrap" align="right">发布状态：</td>
                        <td nowrap="nowrap" align="left">
                            <SXT:DropDownListEx ID="ddlStatus" runat="server" Width="150px">
                                <asp:ListItem Text="=未指定=" Value="" />
                                <asp:ListItem Text="未发布" Value="0" />
                                <asp:ListItem Text="已发布" Value="1" />
                            </SXT:DropDownListEx>
                        </td>
                        <td nowrap="nowrap" align="right">所属组织：
                        </td>
                        <td nowrap="nowrap" align="left">
                            <SXT:Picker ID="ppBranch" runat="server" PickerPage="../../../Shared/Picker/OrgBranchPicker.aspx"
                                Width="180px">
                                <DialogOptionSetting Width="230px" Height="325px" Title="党组织选择器" ParentContainerID="" />
                            </SXT:Picker>
                        </td>
                        <td nowrap="nowrap" align="right">所属专题：</td>
                        <td nowrap="nowrap" align="left">
                            <SXT:DropDownListEx ID="ddlThematic" runat="server">
                            </SXT:DropDownListEx>
                        </td>
                    </tr>
                </table>
            </div>
            <!--查询条件区域结束-->
            <!--数据列表区域开始-->
            <div class="list-dataarea">
                <SXT:GridViewEx ID="dgNotice" runat="server" AllowSorting="true" PageSize="50" AllowPaging="true" OnCreateDataSource="dgNotice_CreateDataSource"
                    Width="100%">
                    <GridViewOptionalSetting CheckColumn="chkSelect" GridViewMode="ScrollBar" ScrollHeight="300px" DataSourceProvide="SQLPaging"
                        IsAdditionalRow="true" CheckValueField="ID" CheckTextField="Title" />
                    <Columns>
                        <SXT:CheckBoxColumnEx ID="chkSelect" Width="20px" />
                        <SXT:TemplateColumn HeaderText="标题">
                            <ItemTemplate>
                                <SXT:HyperLinkEx ID="gridLink" runat="server" DialogID="editDialog" DialogPageUrl='<%#"WorkTrendsEdit.aspx?ID=" + Eval("ID") + "&PageType=" + PageType%>'
                                    Text='<%#Eval("Title") %>'></SXT:HyperLinkEx>
                            </ItemTemplate>
                        </SXT:TemplateColumn>
                        <SXT:BoundColumn DataField="CreateBy" HeaderText="创建者" Width="100px" />
                        <SXT:BoundColumn DataField="IsTopName" HeaderText="文字置顶" Width="55px" Align="Center" />
                        <SXT:BoundColumn DataField="SuperTopName" HeaderText="图片固顶" Width="55px" Align="Center" />
                        <SXT:BoundColumn DataField="IsFirstName" HeaderText="图片置顶" Width="55px" Align="Center" />
                        <SXT:BoundColumn DataField="ActivityTime" HeaderText="活动时间" Width="120px" Align="Center"
                            DataFormatString="{0:yyyy-MM-dd}" />
                        <SXT:BoundColumn DataField="Status" HeaderText="发布" Width="55px" Align="Center" />
                        <SXT:TemplateColumn HeaderText="预览" Width="50px" Align="Center">
                            <ItemTemplate>
                                <SXT:HyperLinkEx ID="gridLink2" runat="server" Text='点击查看' Target="_blank" NavigateUrl='<%#"../../../../../Portal/BranchPortal.aspx?../Widgets/Pages/WorkTrends/WorkTrends.aspx?ID=" + Eval("ID") + "&BranchID=" + Eval("BranchID") %>'></SXT:HyperLinkEx>
                            </ItemTemplate>
                        </SXT:TemplateColumn>
                    </Columns>
                </SXT:GridViewEx>
            </div>
            <!--数据列表区域结束-->
        </div>
    </form>
</body>
</html>
